package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Rules2;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface Rules2Mapper extends BaseMapper<Rules2> {
    @Insert("INSERT INTO rules2 (year, grade, rule) VALUES (#{year}, #{grade}, CAST(#{rule} AS json))")
    void insertWithJson(Rules2 rules2);

}

